package cn.pku.sirx.snad.ad.model;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * @author WangXiao
 */
public class UserContext implements Serializable {

	@Override
	public String toString() {
		return "UserContext [userId=" + userId + ", userIp=" + userIp
				+ ", pageInfo=" + pageInfo + ", weightedKeywords="
				+ weightedKeywords + "]";
	}

	private String userId;
	private String userIp;
	private PageInfo pageInfo = new PageInfo();
	private List<WeightedKeyword> weightedKeywords = Collections.emptyList();

	private static final long serialVersionUID = 2527692818424020495L;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserIp() {
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public PageInfo getPageInfo() {
		return pageInfo;
	}

	public void setPageInfo(PageInfo pageInfo) {
		this.pageInfo = pageInfo;
	}

	public String getDomain() {
		return pageInfo.getDomain();
	}

	public String getReferer() {
		return pageInfo.getReferer();
	}

	public String getSummary() {
		return pageInfo.getSummary();
	}

	public String getTitle() {
		return pageInfo.getTitle();
	}

	public String getUrl() {
		return pageInfo.getUrl();
	}

	public void setDomain(String domain) {
		pageInfo.setDomain(domain);
	}

	public void setReferer(String referer) {
		pageInfo.setReferer(referer);
	}

	public void setSummary(String summary) {
		pageInfo.setSummary(summary);
	}

	public void setTitle(String title) {
		pageInfo.setTitle(title);
	}

	public void setUrl(String url) {
		pageInfo.setUrl(url);
	}

	public void setWeightedKeywords(List<WeightedKeyword> weightedKeywords) {
		this.weightedKeywords = weightedKeywords;
	}

	public List<WeightedKeyword> getWeightedKeywords() {
		return weightedKeywords;
	}

}
